package zjh_20230404;

public class Demo01 {
    //继承Thread创建线程
    public static void main(String[] args) {
        MyThread myThread = new MyThread("线程1");
        myThread.start();
        for (int i = 0; i < 6; i++) {
            System.out.println(Thread.currentThread().getName() + "运行第" + i + "次");
        }
    }
}
